package com.nuc.kl.module.usermanager.service;

import java.util.Collection;
import java.util.List;

import com.nuc.kl.module.usermanager.dao.PrivilegeDao;
import com.nuc.kl.module.usermanager.entity.Privilege;
import com.nuc.kl.module.usermanager.entity.TreeDTO;
import com.nuc.kl.module.usermanager.entity.User;

public interface PrivilegeService extends PrivilegeDao{
	/**
	 * 查询所有顶级的权限
	 * 
	 * @return
	 */
	List<Privilege> findTopList();

	/**
	 * 查询所有权限对应的URL集合（不重复）
	 * @return
	 */
	Collection<String> getAllPrivilegeUrls();
	
	public List<TreeDTO> getChildrenByParentId(String id) ;
	public List<Privilege> getChildren(Long pid);
	public List<Privilege> findList(Long parentId);
	public List<Privilege> listChildren(Long parentId);
	
	public List<String> getEntityPrivilege(User user);
	public String getUrlByName(String name);
	
}
